package com.lzj.admin.service;

import com.lzj.admin.pojo.DamageList;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lzj.admin.pojo.DamageListGoods;
import com.lzj.admin.query.DamageListQuery;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 报损单表 服务类
 * </p>
 *
 * @author luoyoumou
 * @date 2022-12-15
 */
public interface IDamageListService extends IService<DamageList> {

    String getNextDamageNumber();

    @Transactional(propagation = Propagation.REQUIRED,rollbackFor =Exception.class)
    void saveDamageList(DamageList damageList, List<DamageListGoods> plgList);

    Map<String, Object> damageList(DamageListQuery damageListQuery);
}
